package com.fu.edu.manager.controller;

import com.fu.edu.manager.domain.Student;
import com.fu.edu.manager.service.StudentService;

import java.util.Scanner;

/**
 * @author 付大大
 * @create 2021-01-06 10:53
 */
public class OtherStudentController extends BaseStudentController {


    @Override
    public Student inputStudentInfo(String id) {
        System.out.println("请输入学生姓名");
        String name = scanner.next();
        System.out.println("请输入学生年龄");
        String age = scanner.next();
        System.out.println("请输入学生生日");
        String birthday = scanner.next();

        Student student = new Student();
        student.setId(id);
        student.setName(name);
        student.setAge(age);
        student.setBirthday(birthday);
        return student;
    }
}
